package io.gitee.mingbaobaba.apijson.querycondition.query.conditions;

import org.springframework.util.CollectionUtils;

/**
 * <p>自定义片段</p>
 */
class AppendSegment implements DslSegment {

    @Override
    public void apply(AbstractBaseWrapper<?, ?, ?> wrapper) {
        if (!CollectionUtils.isEmpty(wrapper.lastAppendMap)) {
            wrapper.apiJsonParams.putAll(wrapper.lastAppendMap);
        }
    }
}

